<template>
  <div class="app-container">
    <!-- 头部 -->
    <div class="ProductionDynamicHeader">
      <Find :OriginalFilter="{ static: true }" :formList="formList" @findClicked="findData" />
    </div>
    <el-card shadow="never" :body-style="{ padding: '11px 20px' }">
      <div slot="header" class="f16">
        <span style="font-weight: 600">指令明细</span>
      </div>
      <Table :tableHeader="tableHeader" :tableData="tableData" :TableHeight="140" class="mt10" />
    </el-card>
  </div>
</template>
<script lang="ts">
import { defineComponent, ref } from 'vue'
import JMessage from '@/utils/JMessage'
export default defineComponent({
  name: 'ProductionDynamicQuery'
})
</script>
<script lang="ts" setup>
import { i18n, Jzhcn } from '@/i18n'
const formList = ref([
  {
    type: 'input',
    inputLabel: '',
    inputPlaceholder: '请输入指令'
  },
  {
    type: 'input',
    inputLabel: '',
    inputPlaceholder: '请输入订购单号'
  },
  {
    type: 'input',
    inputLabel: '',
    inputPlaceholder: '请输入材质'
  },
  {
    type: 'input',
    inputLabel: '',
    inputPlaceholder: '请输入颜色'
  },
  {
    type: 'select',
    selectValue: '货号',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'select',
    selectValue: '季度',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'select',
    selectValue: '品牌',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'select',
    selectValue: '样品类型',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'select',
    selectValue: '厂商',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'select',
    selectValue: '类型',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'date',
    dateLabel: '下单日期',
    dateValue: ''
  },
  {
    type: 'date',
    dateLabel: '指令交期',
    dateValue: ''
  },
  {
    type: 'date',
    dateLabel: '订购日期',
    dateValue: ''
  },
  {
    type: 'date',
    dateLabel: '需求日期',
    dateValue: ''
  },
  {
    type: 'button',
    checkboxLabel: '清空'
  }
])
const findData = (data: any) => {
  console.log(data)
}
// 表格数据
const tableData = [
  {
    date: '20230427',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  }
]

const tableHeader = ref([
  {
    label: '指令',
    prop: 'shape'
  },
  {
    label: '数量',
    prop: 'shape'
  },
  {
    label: '采购状态',
    prop: 'shape'
  },
  {
    label: '入库状态',
    prop: 'shape'
  },
  {
    label: '生产状态',
    prop: 'shape'
  },
  {
    label: '品牌',
    prop: 'shape'
  },
  {
    label: '货号',
    prop: 'shape'
  },
  {
    label: '季度',
    prop: 'shape'
  },
  {
    label: '样品类型',
    prop: 'shape'
  },
  {
    label: '下单日期',
    prop: 'shape'
  },
  {
    label: '指令交期',
    prop: 'shape'
  },
  {
    Multistage: true,
    label: '备料信息',
    children: [
      {
        label: '颜色',
        prop: 'j'
      },
      {
        label: '材质',
        prop: 'z'
      },
      {
        label: '规格',
        prop: 'z'
      },
      {
        label: '单位',
        prop: 'z'
      },
      {
        label: '类型',
        prop: 'z'
      }
    ]
  },
  {
    Multistage: true,
    label: '采购信息',
    children: [
      {
        label: '订购单号',
        prop: 'j'
      },
      {
        label: '订购日期',
        prop: 'z'
      },
      {
        label: '需求日期',
        prop: 'z'
      },
      {
        label: '厂商',
        prop: 'z'
      },
      {
        label: '订购数量',
        prop: 'z'
      }
    ]
  },
  {
    Multistage: true,
    label: '入库信息',
    children: [
      {
        label: '入库数量',
        prop: 'j'
      },
      {
        label: '入库日期',
        prop: 'z'
      }
    ]
  },
  {
    label: '采购员',
    prop: 'shape'
  },
  {
    label: '备注',
    prop: 'shape'
  }
])

// 表格数据
const tableData1 = [
  {
    customer: '张三',
    instruction: '李四',
    shape: '王五',
    j: '132',
    z: '666'
  }
]
</script>

<style lang="less" scoped>
:deep(.ProductionDynamicMainCardBottom .el-input__wrapper) {
  background-color: #fff5eb;
}

.save {
  color: black;
  border: 1px solid #e7e7e7;
  background: #e7e7e7;
}
</style>
